package org.jeecg.modules.qyxxora.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 生产要素指标监测明细
 * @Author: jeecg-boot
 * @Date:   2021-12-23
 * @Version: V1.0
 */
@Data
@TableName("zbjk_scyszbjc_mx")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="zbjk_scyszbjc_mx对象", description="生产要素指标监测明细")
public class ZbjkScyszbjcMx {

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	private String id;
	/**企业ID*/
//	@Excel(name = "企业ID", width = 25)
    @ApiModelProperty(value = "企业ID")
	private String djxh;
	/**所属年月，例如：（202105）*/
	@Excel(name = "所属年月", width = 15)
    @ApiModelProperty(value = "所属年月，例如：（202105）")
	private String ssny;
	/**纳税人识别号/社会信用代码*/
	@Excel(name = "纳税人识别号/社会信用代码", width = 25)
    @ApiModelProperty(value = "纳税人识别号/社会信用代码")
	private String nsrsbh;
	/**企业名称*/
	@Excel(name = "企业名称", width = 30)
    @ApiModelProperty(value = "企业名称")
	private String nsrmc;

	/**发布日期*/
	@Excel(name = "发布日期", width = 20)
//	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
//	@DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "发布日期")
	private String fbrq;
	/**指标ID(index_manage表主键)*/
//	@Excel(name = "指标ID(index_manage表主键)", width = 15)
    @ApiModelProperty(value = "指标ID(index_manage表主键)")
	private String zbid;
	/**指标名称*/
	@Excel(name = "指标名称", width = 15)
    @ApiModelProperty(value = "指标名称")
	private String zbmc;
	/**监测结果*/
//	@Excel(name = "监测结果", width = 25)
    @ApiModelProperty(value = "监测结果")
	private String zcjg;

	/**预警级别(L1：红；L2：橙；L3：蓝)*/
	@Excel(name = "预警级别", width = 15, dicCode = "scys_mx_yjjb")
    @ApiModelProperty(value = "预警级别(L1：红；L2：橙；L3：蓝)")
	@Dict(dicCode = "scys_mx_yjjb")
	private String yjjb;
	/**预警详情*/
	@Excel(name = "预警详情", width = 15)
    @ApiModelProperty(value = "预警详情")
	private String yjxq;
	/**阀值上限*/
	@Excel(name = "阀值上限", width = 15)
	@ApiModelProperty(value = "阀值上限")
	private java.math.BigDecimal fzSx;
	/**阀值下限*/
	@Excel(name = "阀值下限", width = 15)
	@ApiModelProperty(value = "阀值下限")
	private java.math.BigDecimal fzXx;
	/**0:待核查;1:核查中; 2:完成;*/
	@Excel(name = "处理状态", width = 15, dicCode = "scys_clzt")
    @ApiModelProperty(value = "0:待核查;1:核查中; 2:完成;")
	@Dict(dicCode = "scys_clzt")
	private Integer clzt;
	/**处理结果（SS_CZYH：属实/存在隐患;SS_WFX:属实/无实质风险;BSS:不属实）*/
	@Excel(name = "处理结果", width = 15, exportConvert = true)
    @ApiModelProperty(value = "处理结果（SS_CZYH：属实/存在隐患;SS_WFX:属实/无实质风险;BSS:不属实）")
	@Dict(dicCode = "scys_cljg")
	private String cljg;
	/**处理人*/
//	@Excel(name = "处理人", width = 15)
    @ApiModelProperty(value = "处理人")
	private String clr;
	/**处理人联系电话*/
	@Excel(name = "处理人联系电话", width = 15)
    @ApiModelProperty(value = "处理人联系电话")
	private String clrLxdh;
	/**处理人姓名*/
	@Excel(name = "处理人姓名", width = 15)
    @ApiModelProperty(value = "处理人姓名")
	private String clrXm;
	/**处理时间*/
	@Excel(name = "处理时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "处理时间")
	private Date clsj;
	/**处理详情*/
	@Excel(name = "处理详情", width = 15)
	@ApiModelProperty(value = "处理详情")
	private String cljgsm;

	public String convertgetCljg() {
		if ("SS_CZYH".equals(cljg)) {
			return "属实/存在隐患";
		}
		if ("SS_WFX".equals(cljg)) {
			return "属实/无实质风险";
		}
		if ("BSS".equals(cljg)) {
			return "不属实";
		}
		return cljg;
	}
}
